606 m Mega-tall Building

See the original tcl file of the model in OpenSees models for a 606 m Mega-tall Building and a python file converted by opstool.pre.tcl2py that you can download from hereMegatallBuilding.py.

[1]:
import time

import opstool as opst
[2]:
from data.MegatallBuilding import FEMmodel

FEMmodel()

Build model

[3]:
start = time.time()
opst.post.save_model_data(odb_tag="megatall-building")
end = time.time()
print("Data Saving: Time elapsed: ", end - start, " s")
OPSTOOL™ ::  Model data has been saved to
g:\opstool\docs\quick-start\.opstool.output/ModelData-megatall-building.zarr!
Data Saving: Time elapsed:  3.025362968444824  s

Visualization by Pyvista

[4]:
opst.vis.pyvista.set_plot_props(point_size=0, line_width=0.5, notebook=True)  # For Jupyter Notebooks

start = time.time()
plotter = opst.vis.pyvista.plot_model(odb_tag="megatall-building")
plotter.show(jupyter_backend="static")
# plotter.show()
end = time.time()
print("Pyvista-Based: Time elapsed: ", end - start, " s")
OPSTOOL™ ::  Loading model data from g:\opstool\docs\quick-start\.opstool.output/ModelData-megatall-building.zarr
...
../_images/quick-start_vis-megatall_7_1.png
Pyvista-Based: Time elapsed:  0.7574057579040527  s

Visualization with Plotly

[5]:
opst.vis.plotly.set_plot_props(point_size=0, line_width=0.4)

start = time.time()
fig = opst.vis.plotly.plot_model(odb_tag="megatall-building", show_outline=False)
fig.write_html("megatall-building-plotly.html", include_plotlyjs="cdn", auto_open=False)
fig.show()
# fig.show(renderer="browser")
end = time.time()
print("Plotly-Based: Time elapsed: ", end - start, " s")
OPSTOOL™ ::  Loading model data from g:\opstool\docs\quick-start\.opstool.output/ModelData-megatall-building.zarr
...

Data type cannot be displayed: application/vnd.plotly.v1+json

Plotly-Based: Time elapsed:  3.15846586227417  s

Eigenmodes Visualization

Data Saving for Eigenmodes Visualization

[6]:
start = time.time()
opst.post.save_eigen_data(odb_tag="megatall-building-eigen", mode_tag=2, interpolate_beam=False)
end = time.time()
print("Data Saving: Time elapsed: ", (end - start) / 60, " min")
Using DomainModalProperties - Developed by: Massimo Petracca, Guido Camata, ASDEA Software Technology
OPSTOOL™ ::  Eigen data has been saved to
g:\opstool\docs\quick-start\.opstool.output/EigenData-megatall-building-eigen.zarr!
Data Saving: Time elapsed:  7.3829182386398315  min

Visualization by Pyvista

[7]:
opst.vis.pyvista.set_plot_props(
    point_size=0, line_width=0.75, show_mesh_edges=False, notebook=True
)  # For Jupyter Notebooks
start = time.time()
plotter = opst.vis.pyvista.plot_eigen(odb_tag="megatall-building-eigen", mode_tags=[1, 2], subplots=False)
plotter.show(jupyter_backend="static")
# plotter.show()
end = time.time()
print("Pyvista-Based: Time elapsed: ", end - start, " s")
OPSTOOL™ ::  Loading eigen data from
g:\opstool\docs\quick-start\.opstool.output/EigenData-megatall-building-eigen.zarr ...
../_images/quick-start_vis-megatall_15_1.png
Pyvista-Based: Time elapsed:  0.498152494430542  s

Visualization by Plotly

[8]:
opst.vis.plotly.set_plot_props(point_size=0, line_width=0.75, show_mesh_edges=False)
start = time.time()
fig = opst.vis.plotly.plot_eigen(odb_tag="megatall-building-eigen", mode_tags=1, subplots=False)
# fig.show(renderer="browser")
fig.show()
fig.write_html("megatall-building-eigen-plotly.html", include_plotlyjs="cdn", auto_open=False)
end = time.time()
print("Plotly-Based: Time elapsed: ", end - start, " s")
OPSTOOL™ ::  Loading eigen data from
g:\opstool\docs\quick-start\.opstool.output/EigenData-megatall-building-eigen.zarr ...

Data type cannot be displayed: application/vnd.plotly.v1+json

Plotly-Based: Time elapsed:  0.9741208553314209  s

Machine information

[9]:
import platform, psutil, os

print(f"""System Information:
OS: {platform.system()} {platform.release()}
CPU: {platform.processor()}
Arch: {platform.machine()}
Logical cores: {os.cpu_count()}
Physical cores: {psutil.cpu_count(logical=False)}
Freq: {psutil.cpu_freq().current:.0f} MHz
RAM: {psutil.virtual_memory().total / 1024**3:.1f} GB
""")

System Information:
OS: Windows 11
CPU: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel
Arch: AMD64
Logical cores: 28
Physical cores: 20
Freq: 3400 MHz
RAM: 29.7 GB